# -*- coding:utf-8 -*-

from rest_framework.serializers import ModelSerializer

from Apps.User.models import User


class UserSer(ModelSerializer):
    class Meta:
        model = User
        # fields = '__all__'
        exclude = ["password"]


class PostUserSer(ModelSerializer):

    def validate(self, attrs):
        return attrs

    class Meta:
        model = User
        # fields = '__all__'
        exclude = ["password"]
